<?php
/**
 * 创业导师
 */
class SirApp extends CommonApp {
    //校内导师
    public function inAct(){
        $result = self::getList('in');
        self::assign_seo('in');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('in'));
        $this->display('Common/index');
    }
    //校外导师
    public function outAct(){
        $result = self::getList('out');
        self::assign_seo('out');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('out'));
        $this->display('Common/index');
    }
    //导师荣誉
    public function honorAct(){
        $result = self::getList('honor');
        self::assign_seo('honor');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('honor'));
        $this->display('Common/index');
    }
    //详情
    public function detailAct(){
        $id = I('get.id');
        if(!My::is_id($id))
            $this->ajaxReturn(404,'文章详情ID有误!');
        // $item = My::arr2var($_REQUEST,'item');
        $result = self::detail($id);
        $this->assign('result',$result);
        $this->assign('menu',self::menu($result['item']));
        $this->display('Common/detail');
    }
}